package org.jeecg.modules.sggg.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.sggg.entity.SgBacklog;
import org.jeecg.modules.sggg.entity.SgTask;
import org.jeecg.modules.sggg.mapper.SgBacklogMapper;
import org.jeecg.modules.sggg.mapper.SgTaskMapper;
import org.jeecg.modules.sggg.service.ISgBacklogService;
import org.jeecg.modules.sggg.service.ISgTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 待办表
 * @Author: jeecg-boot
 * @Date: 2022-10-17
 * @Version: V1.0
 */
@Service
public class SgTaskServiceImpl extends ServiceImpl<SgTaskMapper, SgTask> implements ISgTaskService {

    @Autowired
    private SgTaskMapper sgTaskMapper;

    @Override
    public List<SgTask> queryTaskList(String userId, String orgCode) {
        return sgTaskMapper.queryTaskList(userId, orgCode);
    }

    @Override
    public List<SgTask> queryTaskListTo(String orgCode, List<String> responsibleAgencies) {
        return sgTaskMapper.queryTaskListTo(orgCode,responsibleAgencies);
    }
}
